interface IHotMovie {
    movieCover: string
    movieDesc: string
    movieId: number
    movieName: string
    movieScore: number
    movieScoreNum: number
    movieTypeId: number
    movieView: number
    movieDuring: number
}

export default {
    namespaced: true,
    state: () => ({
        siderType: true,
        isShowMask: false,
        keyword: '',
        scrollTop: 0,
        searchList:[]
    }),
    mutations: {
        changeSiderType(state:any) {
            state.siderType = !state.siderType
        },
        changeMaskStatus(state:any,data:boolean) {
            state.isShowMask = data
        },
        setKeyword(state:any,data:string) { 
            state.keyword = data
        },
        setScrollTop(state:any,data:number) { 
            state.scrollTop = data
        },
        setSearchList(state:any,data:IHotMovie[]) { 
            debugger
            state.searchList = data
        }
    },
}